package com.bdqn.service;

import com.bdqn.common.PageSupport;
import com.bdqn.pojo.Supplier;

import java.util.List;

public interface SupplierService {

    /**
     * 修改供应商信息
     *
     * @param supplier
     * @return
     */
    boolean update(Supplier supplier);
    List<Supplier> getPageList(Supplier supplier, PageSupport page);

    int count(Supplier supplier);

    List<Supplier> getSupName();

    /**
     * 根据Id查询信息
     *
     * @param id
     * @return
     */
    Supplier queryId(Integer id);

    boolean delete(Integer supId);

    boolean add(Supplier supplier);
}
